class CreateTransactions < ActiveRecord::Migration
  def change
    create_table :transactions do |t|
      t.references :seller
      t.references :ad
      t.string :description
      t.integer :sum

      t.timestamps
    end

    add_index :transactions, :seller_id
    add_index :transactions, :ad_id
  end
end
